/*
Copyright (c) [2019年5月1日] [吴超]
[MBT_studio] is licensed under Mulan PSL v2.
You can use this software according to the terms and conditions of the Mulan PSL v2.
You may obtain a copy of Mulan PSL v2 at:
		 http://license.coscl.org.cn/MulanPSL2
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
See the Mulan PSL v2 for more details.
*/
#pragma once


#include "an_曲线.h"


float32 f_graph_钳制曲线采样(float32  采样位置, const S_曲线& curve, const vec2 钳制 = { 1,1 });


void f_prop_采样曲线拷贝到GPU(S_Props& 采样曲线);




void f_an_添加属性关键帧(S_Props& 采样曲线);
void f_an_移除属性关键帧(S_Props& 采样曲线);

void f_an_更新属性关键帧();


void f_prop_插入关键帧(S_Props& prop, int32 time, float32 value, uint32 id);
void f_prop_删除关键帧(S_Props& prop, int32 time);


